<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>33-forEach遍历数组</title>
</head>
<body>
    <script>
        const arr = ['周思涵','侯睿','杨欣怡']
        arr.forEach(function(e,index){
            console.log(e) // 数组中的每个元素
            console.log(index) // index得到数组元素的索引号（下标）
        })
    </script>
</body>
</html>